package com.zjgxzh.dialogservice.pojo;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Lob;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
public class Dialog {

    private String threadId;

    @Column(nullable = false)
    private String username;

    private String assistantId;

    private String role;

    @Lob
    private String content;

    @Id
    private LocalDateTime time;

}
